package com.ruoyi.coal.modules.coalpile.domain;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("cp_coal_save_pile")
public class CoalSavePileEntity {
    private Integer pileId;

    private Integer coalYardId;

    private Integer del;

    public void setPileId(Integer pileId) {
        this.pileId = pileId;
    }

    public void setCoalYardId(Integer coalYardId) {
        this.coalYardId = coalYardId;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.CoalSavePileEntity))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.CoalSavePileEntity other = (com.ruoyi.coal.modules.coalpile.domain.CoalSavePileEntity)o;
        if (!other.canEqual(this))
            return false;
        Object this$pileId = getPileId(), other$pileId = other.getPileId();
        if ((this$pileId == null) ? (other$pileId != null) : !this$pileId.equals(other$pileId))
            return false;
        Object this$coalYardId = getCoalYardId(), other$coalYardId = other.getCoalYardId();
        if ((this$coalYardId == null) ? (other$coalYardId != null) : !this$coalYardId.equals(other$coalYardId))
            return false;
        Object this$del = getDel(), other$del = other.getDel();
        return !((this$del == null) ? (other$del != null) : !this$del.equals(other$del));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.CoalSavePileEntity;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $pileId = getPileId();
        result = result * 59 + (($pileId == null) ? 43 : $pileId.hashCode());
        Object $coalYardId = getCoalYardId();
        result = result * 59 + (($coalYardId == null) ? 43 : $coalYardId.hashCode());
        Object $del = getDel();
        return result * 59 + (($del == null) ? 43 : $del.hashCode());
    }

    public String toString() {
        return "CoalSavePileEntity(pileId=" + getPileId() + ", coalYardId=" + getCoalYardId() + ", del=" + getDel() + ")";
    }

    public Integer getPileId() {
        return this.pileId;
    }

    public Integer getCoalYardId() {
        return this.coalYardId;
    }

    public Integer getDel() {
        return this.del;
    }
}
